<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/15
  Time: 8:21
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript" src="../jquery-3.3.1.min.js"></script>
<html>
<head>
    <title>评论管理</title>
</head>
<body>

<div align = "center" >
    <h1>所有评论</h1>
    <c:if test = "${not empty data}" >
        <c:forEach items="${data}" var="data" varStatus="s">
            <form action="/DeleteComment" method="post">
                <hr color="black" width="30%" size="3" align="center"/>
                    ${s.count}. 文章：${data.articleName}<br>评论者：${datat.username}<br>
                    ${data.comment}<br>
                <hr color="black" width="30%" size="3" align="center"/>
                <input type="hidden" name="user" value = "${data.username}">
                <input type="hidden" name="articleName" value = "${data.articleName}">
                <input type="hidden" name="comment" value = "${data.comment}"><br>
                <input type="submit" value="删除"><br>
            </form>
        </c:forEach>
    </c:if >

    <td>
        <form action="/user" method="post">
            <input type="submit" value="返回用户界面">
        </form>
    </td>
</div>

</body>
</html>
